<?php
namespace app\index\model;
use think\Model;
class Companyprofile extends Model
{
	protected $resultSetType='collection';
    public function index()
    {
        $res=$this->where('id',1)->find();
        return $res;
    }
    //公司简介增加和修改
    public function add($data){
        $bool=$this->save(['profile'=>$data],['id'=>1]);
        return $bool;
    }
}